package com.example.myandroid;

import java.util.Date;

import roboguice.activity.RoboActivity;
import roboguice.inject.InjectView;

import com.google.inject.Inject;

import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

public class MyAndroidAppActivity extends RoboActivity
{
	@InjectView(R.id.press_me_button) Button pressMeButton;
	@InjectView(R.id.hello_world_text) TextView helloWorld;
	@Inject Date date;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        String text = helloWorld.getText().toString();
        text += "  " +date.toString();
        helloWorld.setText(text);
    }
}
